using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Pub_Module_MyBasket : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
            BindData();
    }
    private DataTable GetData()
    {
        DataTable dtBasket = new DataTable();
        if (Session["dtBasket"] != null)
            dtBasket = (DataTable)Session["dtBasket"];
        return dtBasket;
    }

    private void BindData()
    {
        dtlBasket.DataSource = GetData();
        dtlBasket.DataBind();
        if (dtlBasket.Items.Count <= 0)
        {
            lblEmtybasket.Visible = true;
        }
        
    }
}
